package com.jonniespratley.codegen.library
{
	import flash.events.Event;

	public class CodeGenServiceEvent extends Event
	{
		static public const CODEGEN_SERVICE_RESULT_EVENT:String = 'codegenServiceResultEvent';
		static public const CODEGEN_SERVICE_FAULT_EVENT:String = 'codegenServiceFaultEvent';
		static public const CODEGEN_SERVICE_TEST_EVENT:String = 'codegenServiceTestEvent';
		static public const CODEGEN_SERVICE_SERVER_CODE_EVENT:String = 'codegenServiceServerCodeEvent';
		static public const CODEGEN_SERVICE_CLIENT_CODE_EVENT:String = 'codegenServiceClientCodeEvent';
		
		public var data:Object;
		public var options:Object;
		public var action:String;
		
		public function CodeGenServiceEvent(type:String, action:String, data:Object = null, options:Object = null)
		{
			super(type);
			this.data = data;
			this.options = options;
			this.action = action
		}
		
		override public function clone():Event{
			return new CodeGenServiceEvent( type, action, data, options );
		}
		
	}
}